//
//  XHNewViewController.m
//  BSNoAnswer
//
//  Created by Tiffany宝 on 16/5/12.
//  Copyright © 2016年 Tiffany. All rights reserved.
//

#import "XHNewViewController.h"

@interface XHNewViewController ()

@end

@implementation XHNewViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.titleView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"MainTitle"]];
//    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
//    [button setBackgroundImage:[UIImage imageNamed:@"MainTagSubIcon"] forState:UIControlStateNormal];
//    [button setBackgroundImage:[UIImage imageNamed:@"MainTagSubIconClick"] forState:UIControlStateHighlighted];
//    [button sizeToFit];
//    [button addTarget:self action:@selector(buttonClick) forControlEvents:UIControlEventTouchUpInside];
    
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithImage:@"MainTagSubIcon" highlightedImage:@"MainTagSubIconClick" target:self selector:@selector(buttonClick)];
    
    self.view.backgroundColor = XHGrayColor(223);
}

-(void)buttonClick{
    
    XHLogFunc;
}

@end
